<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>循环选择结点</title>
</head>
<body>
    <div>前端技术</div>
    <div>IOS技术</div>
    <div>安卓技术</div>
    <div>JAVA技术</div>
    <script>
        var x=document.getElementsByTagName('div')
        for(var i=0;i<x.length;i++){
            x[i].innerHTML='来慕课网学习最新的'+x[i].innerHTML;
        }
    </script>
</body>
</html>